From: Jonas Dreßler Date: Thu, 24 Jul 2025 23:13:03 +0000 (+0200) Subject: status/thunderbolt: Actually connect onDestroy callback X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~116^2^2~25 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=963fda971fc397dec4d399d1a43f36cde30f84c0;p=gnome-shell.git status/thunderbolt: Actually connect onDestroy callback Seems this was forgotten in the initial commit adding the new indicator. Part-of: --- diff --git a/js/ui/status/thunderbolt.js b/js/ui/status/thunderbolt.js index ffe4a0805..f0ee7edf1 100644 --- a/js/ui/status/thunderbolt.js +++ b/js/ui/status/thunderbolt.js @@ -231,6 +231,8 @@ class Indicator extends SystemIndicator { this._robot.connect('enroll-device', this._onEnrollDevice.bind(this)); this._robot.connect('enroll-failed', this._onEnrollFailed.bind(this)); + this.connect('destroy', () => this._onDestroy()); + Main.sessionMode.connect('updated', this._sync.bind(this)); this._sync();